package data.analysis.grammar;

import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenStream;
import org.antlr.runtime.tree.CommonErrorNode;

public class LocStatASTError extends LocStatAST {
	private CommonErrorNode wrapped;
	
	public LocStatASTError(TokenStream input, Token start, Token stop, RecognitionException e) {
		wrapped = new CommonErrorNode(input, start, stop, e);
	}
	
	@Override
	public boolean isNil() {
		return wrapped.isNil();
	}
	
	@Override
	public int getType() {
		return wrapped.getType();
	}
	
	@Override
	public String getText() {
		return wrapped.getText();
	}
	
	@Override
	public String toString() {
		return wrapped.toString();
	}
}
